$OpenBSD: patch-conserver_consent_c,v 1.5 2014/10/07 22:14:17 sthen Exp $
--- conserver/consent.c.orig	Sun Apr 20 08:14:49 2014
+++ conserver/consent.c	Tue Oct  7 16:49:57 2014
@@ -521,7 +521,8 @@ SetupTty(CONSENT *pCE, int fd)
     if (0 != tcgetattr(1, &n_tio)) {
 	exit(EX_OSERR);
     }
-    n_tio.c_iflag &= ~(IGNCR | IUCLC);
+
+    n_tio.c_iflag &= ~(IGNCR);
     n_tio.c_iflag |= ICRNL;
     if (pCE->ixon == FLAGTRUE)
 	n_tio.c_iflag |= IXON;
@@ -529,10 +530,8 @@ SetupTty(CONSENT *pCE, int fd)
 	n_tio.c_iflag |= IXANY;
     if (pCE->ixoff == FLAGTRUE)
 	n_tio.c_iflag |= IXOFF;
-    n_tio.c_oflag &=
-	~(OLCUC | ONOCR | ONLRET | OFILL | NLDLY | CRDLY | TABDLY | BSDLY);
     n_tio.c_oflag |= OPOST | ONLCR;
-    n_tio.c_lflag &= ~(XCASE | NOFLSH | ECHOK | ECHONL);
+    n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL);
     n_tio.c_lflag |= ISIG | ICANON | ECHO;
     n_tio.c_cc[VEOF] = '\004';
     n_tio.c_cc[VEOL] = '\000';
